From 192db2bb27a53ef545ddb9300af0c6b70b4ecf0a Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Fri, 3 Apr 2009 06:23:49 +0000 Subject: [PATCH] (print_object): Make each lowest sub_char_table start a new line. --- src/print.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/print.c b/src/print.c index 738f4f678ed..e78f593c7b5 100644 --- a/src/print.c +++ b/src/print.c @@ -2116,6 +2116,13 @@ print_object (obj, printcharfun, escapeflag) /* We print a char-table as if it were a vector, lumping the parent and default slots in with the character slots. But we add #^ as a prefix. */ + + /* Make each lowest sub_char_table start a new line. + Otherwise we'll make a line extremely long, which + results in slow redisplay. */ + if (SUB_CHAR_TABLE_P (obj) + && XINT (XSUB_CHAR_TABLE (obj)->depth) == 3) + PRINTCHAR ('\n'); PRINTCHAR ('#'); PRINTCHAR ('^'); if (SUB_CHAR_TABLE_P (obj)) -- 2.30.2